home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Day Cry
/
Day Cry CD.bin
/
oh_towns
/
tetujin
/
src.lzh
/
G_EFF
/
G_EFF.H
< prev
next >
Wrap
Text File
|
1994-08-27
|
2KB
|
83 lines
/*
graphic effect lib
1994 2 7
H. TODA
*/
/* âxü[âVâbâNâpâëâüü[â^é╠ì\æóæ╠ÉΘî╛ */
typedef struct
{
unsigned int mix ; /* ╨╕╝▌╕▐┌░─0ü`256(Æ╩Åφ256,é╗éΩê╚ë║é═ö╝ôºû╛) */
unsigned int alphaSen ; /* ▒┘╠º╛▌╗ 0:OFF 1:ON */
unsigned int maskSen ; /* ╧╜╕╛▌╗ 0:OFF 1ê╚Åπ:ON */
unsigned int colorMax ; /* RGB├▐░└é╠ì┼æσÆl 0ü`255 */
unsigned int alphaMax ; /* ▒┘╠º├▐░└é╠ì┼æσÆl 0ü`255 */
unsigned int lupx ; /* ì╢ÅπXì└òW */
unsigned int lupy ; /* ì╢ÅπYì└òW */
unsigned int rdwx ; /* ëEë║Xì└òW */
unsigned int rdwy ; /* ëEë║Yì└òW */
int (*read1)() ; /* readù╠êµô╟ì₧è╓Éö f( int x, int y, unsigned char *c ) */
int (*read2)() ; /* writeù╠êµô╟ì₧è╓Éöf( int x, int y, unsigned char *c ) */
int (*write)() ; /* writeù╠êµÅæì₧è╓Éöf( int x, int y, unsigned char *c ) */
int (*mask)() ; /* maskÅεò±ô╟ĵè╓Éö f(int x, int y) >= ╧╜╕╛▌╗ é╚éτ╧╜╕ON */
/* é╜é╛é╡ unsigned char c[4]={ R, G, B, alpha } */
} BASICPARA ;
/***** âtâ@âWâBâîâKü[âg *****/
g_fuzzyLegato( BASICPARA *para, int mode, int fuzzySen ) ;
/* mode ; 1:RGBÅêù¥ 2:alphaÅêù¥ 3:RGB & alphaÅêù¥ */
/* fuzzySen ; ╠º╝▐¿╛▌╗é╠è┤ôx 0ü`256 (ÉäźÆl224) */
/* maské═, alphaÅêù¥é╠Ä₧,û│î° */
/***** ârâfâIâfâWâ^âCâYëµâXâÇü[âT *****/
g_videoDigitizeSmoother( BASICPARA *para, int mode, int line ) ;
/* mode 0:âmü[â}âï 1:ï¡ */
/* line 0:è∩ÉöâëâCâôé≡èεÅÇ 1:ï⌠ÉöâëâCâôé≡èεÅÇ */
/***** ïPôxâfü[â^é╠âqâXâgâOâëâÇé≡ò╜ï╧ë╗é╖éΘè╓Éö *****/
g_histgramAverager( char *wk,
BASICPARA *para, int mode, int min, int max ) ;
/* wk(âÅü[âNâGâèâA)é╠æσé½é│é═ (rdwx-lupx+1)*(rdwy-lupy+1)*2 âoâCâg */
/*
mode 0:ÄΦô«é┼ïPôxö═ê═é≡É▌ÆΦ
(min,maxé╠Ælé¬ùLî°)
1:Ä⌐ô«é┼ïPôxö═ê═é≡É▌ÆΦ
(min,maxé╠Ælé═û│î°é╔é╚éΦ,âGâèâAôαé╠ïPôxì┼æσì┼żÆlé╠è╘èué≡ì╠ùp)
*/
/***** âüâfâBâAâôÑâtâBâïâ^ *****/
g_medianFilter( BASICPARA *para ) ;
/***** ÉFé≡ì─özÆué╖éΘè╓Éö *****/
int extern g_replaceColors( int wkMax, char *wk, BASICPARA *para, int mode ) ;
/* wkMax(âÅü[âNâGâèâA)é╠æσé½é│é═ (rdwx-lupx+1)*(rdwy-lupy+1)*2âoâCâgê╚ÅπòKùv */
/* mode 0:âqâXâgâOâëâÇé≡ò╜ï╧ë╗é╡é─özÆu 1:ÆPÅâözÆu */
/***** â\âtâgâlâXÑâtâBâïâ^ *****/
g_softnessFilter( BASICPARA *para, int rate ) ;
/***** â\âtâgâlâXÑâtâBâïâ^ôÖé╠òΓÉ│âtâBâïâ^ *****/
g_s_c_Filter( BASICPARA *para, int rate ) ;
g_c_m_Filter( BASICPARA *para, int rate ) ;
/***** YUVò╧è╖&î╕èKÆ▓ *****/
g_yuvConv( BASICPARA *para, int ydiv, int udiv, int vdiv, int mode ) ;